#pragma once

#include "base/core/tinyxml2.h"

using namespace tinyxml2;

bool GetXmlIntAttrib(XMLElement* element, const char* key, int default_value, int* ret_value);
bool GetXmlBoolAttrib(XMLElement* element, const char* key, bool default_value, bool* ret_value);
bool GetXmlFloatAttrib(XMLElement* element, const char* key, float default_value, float* ret_value);
bool GetXmlDoubleAttrib(XMLElement* element, const char* key, double default_value, double* ret_value);
bool GetXmlStrAttrib(XMLElement* element, const char* key, const char* default_str, char* ret_str, unsigned int buf_max_size);